<?php
/**
 * The following variables are available in this template:
 * - $this: the BootCrudCode object
 */
/** @var AweCrudCode $this */
?>
<?php echo "<?php\n" ?>
/** @var <?php echo $this->controllerClass; ?> $this */
/** @var <?php echo $this->modelClass; ?> $model */
<?php
$nameColumn = $this->guessNameColumn($this->tableSchema->columns);
$label = $this->pluralize($this->class2name($this->modelClass));
?>

$this->menu=array(
array('label' => Yii::t('AweCrud.app', 'Manage'),'icon' => 'icon-list', 'url' => array('admin'),'itemOptions' => array('class' => 'icon-4x pull-left icon-border')),
array('label' => Yii::t('AweCrud.app', 'Create'),'icon' => 'icon-plus', 'url' => array('create'),'itemOptions' => array('class' => 'icon-4x pull-left icon-border')),
);
?>

<?php echo "<?php\n" ?>
$this->beginWidget(
        'bootstrap.widgets.TbBox', array(
    'title' => <?php echo "Yii::t('AweCrud.app', 'View') . ' ' . {$this->modelClass}::label()" ?>,
    'headerIcon' => 'icon-eye-open',
        )
);
<?php echo "?>\n" ?>

<?php echo "<?php"; ?> $this->widget('bootstrap.widgets.TbDetailView',array(
'data' => $model,
'attributes' => array(
<?php foreach ($this->tableSchema->columns as $column): ?>
    <?php
    if ($column->isPrimaryKey) {
        continue;
    }
    ?>
    <?php echo $this->generateDetailViewAttribute($this->modelClass, $column) . ",\n" ?>
<?php endforeach; ?>
),
)); ?>

<?php echo "<?php \$this->endWidget(); ?>\n" ?>